<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf" %>
<script type="text/javascript" src="${ctx}/js/order/neworder_edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
label[class^="btn btn-default"]{
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/order/neworder_received.shtml">
		<input type="hidden" class="form-control checkacc" value="${order.id}"
			name="orderFormMap.id" id="id">
		<section class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">客户名称</label>
					<div class="col-sm-9">
						<input type="hidden" class="form-control "  name="orderFormMap.client_no" value="${order.client_no}"/>
						<input type="text" class="form-control "   value="${order.clientname}" readonly/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">模具编号</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh" name="orderFormMap.mold_encode" value="${order.mold_encode}" readonly/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">订单数量</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkName"
							placeholder="请输入订单数量" name="orderFormMap.number"  readonly value="${order.number}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">客户定重</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" placeholder="请输入定重"
							name="orderFormMap.client_weight" readonly  value="${order.client_weight }">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">客户公差</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" readonly  value="±${client.tolerance }">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">内部公差</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" readonly value="±${client.actual_tolerance }">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">排产重量</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" placeholder="请输入排产重量" required
							name="orderFormMap.production_weight"  value="${order.production_weight }">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">采购订单号</label>
					<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入采购订单号"
							name="orderFormMap.po_no" readonly value="${order.po_no }">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">客户编码</label>
					<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入客户编码"
							name="orderFormMap.client_encode" readonly value="${order.client_encode }">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">出货日期</label>
					<div class="col-sm-9">
					 <input type="text" class="form-control" placeholder="请输入出货日期" id="shipping_time" required readonly
							name="orderFormMap.shipping_time" readonly value="${order.shipping_time}"/>
					 </div>
				</div>
				
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">作业号</label>
					<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入作业号"
							name="orderFormMap.job_number" readonly value="${order.job_number }">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">单价</label>
					<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入单价" 
							name="orderFormMap.price"  value="${order.price }">
					</div>
				</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">接收</button>
			<button type="reset" class="btn btn-error btn-s-xs">拒绝</button>
		</footer> 
	</section>
	</form>
	<script type="text/javascript">
jeDate({
	dateCell:"#shipping_time",
	format:"YYYY-MM-DD hh:mm:ss",
	isinitVal:false,
	isTime:true, 
	isClear:false,
	minDate:"2014-09-19 00:00:00"
})
</script>
</body>
</html>